package com.ruoyi.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 iot_product
 *
 * @author 陈江灿
 * @date 2025-02-08
 */
public class IotProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备id
     */
    private Long productId;

    /**
     * 分类id
     */
    @Excel(name = "分类id")
    private Long categoryId;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String name;

    /**
     * 设备ip
     */
    @Excel(name = "设备ip")
    private String ip;

    /**
     * 接入方式
     */
    @Excel(name = "接入方式")
    private String access;

    /**
     * 摄像头用户名
     */
    @Excel(name = "摄像头用户名")
    private String cameraUser;

    /**
     * 摄像头密码
     */
    @Excel(name = "摄像头密码")
    private String cameraPassword;

    /**
     * rtsp播放地址
     */
    @Excel(name = "rtsp播放地址")
    private String cameraRtsp;

    /**
     * 考勤机sn码
     */
    @Excel(name = "考勤机sn码")
    private String clockInSn;

    /**
     * 考勤机品牌
     */
    @Excel(name = "考勤机品牌")
    private String clockInModel;

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setAccess(String access) {
        this.access = access;
    }

    public String getAccess() {
        return access;
    }

    public void setCameraUser(String cameraUser) {
        this.cameraUser = cameraUser;
    }

    public String getCameraUser() {
        return cameraUser;
    }

    public void setCameraPassword(String cameraPassword) {
        this.cameraPassword = cameraPassword;
    }

    public String getCameraPassword() {
        return cameraPassword;
    }

    public void setCameraRtsp(String cameraRtsp) {
        this.cameraRtsp = cameraRtsp;
    }

    public String getCameraRtsp() {
        return cameraRtsp;
    }

    public void setClockInSn(String clockInSn) {
        this.clockInSn = clockInSn;
    }

    public String getClockInSn() {
        return clockInSn;
    }

    public void setClockInModel(String clockInModel) {
        this.clockInModel = clockInModel;
    }

    public String getClockInModel() {
        return clockInModel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("categoryId", getCategoryId())
                .append("name", getName())
                .append("ip", getIp())
                .append("access", getAccess())
                .append("cameraUser", getCameraUser())
                .append("cameraPassword", getCameraPassword())
                .append("cameraRtsp", getCameraRtsp())
                .append("clockInSn", getClockInSn())
                .append("clockInModel", getClockInModel())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
